package com.weavernorth.t2zsi2yl6t.dengxiaobing.action;

import com.alibaba.fastjson.JSON;
import com.weaver.common.base.entity.result.WeaResult;
import com.weaver.esb.api.rpc.EsbServerlessRpcRemoteInterface;
import groovy.util.logging.Slf4j;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.stereotype.Service;

import java.util.Map;

@Slf4j
@Service("esbTestDemoAction")
public class TestDemoAction implements EsbServerlessRpcRemoteInterface {
    private final Logger logger = LoggerFactory.getLogger(TestDemoAction.class);

    @Override
    public WeaResult<Map<String, Object>> execute(Map<String, Object> params) {
        logger.info("params:{}", JSON.toJSONString(params));
        params.put("extral","111");
        return WeaResult.success(params);
    }
}
